#ifndef __MSG_QUEUE_H__
#define __MSG_QUEUE_H__
#include <stdio.h>
#include <mqueue.h> 
#include <errno.h>
#include <string.h>
#include <unistd.h>

#define QUEUE_NAME "/mq_queue"

mqd_t msg_queue_create(void);
void msg_queue_final(mqd_t mqd);
int send_message(mqd_t mqd,void* msg,int msg_len);

typedef struct
{
    int msg_len;
    unsigned char buffer[1024];
} recv_msg_t;

#endif

